<link rel="stylesheet" href="../static/css/style.css">
<link rel="stylesheet" href="../static/css/styleoneadd.css">
<link rel="stylesheet" href="../static/plugins/layui/css/layui.css">
<link rel="stylesheet" href="../static/plugins/bootstrap-3.3.7/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="../static/plugins/bootstrap-3.3.7/css/bootstrap.min.css">

<style>
    body{
        background-color: #f2f2f2 !important;
    }
</style>
    <!-- 内容主体区域 -->
<div class="layui-fluid-pad">
    <div class="layui-col-md12">
        <div class="layui-card">
            <div class="layui-card-header">类型管理</div>
            <div class="layui-card-body">
                <div class="layui-row layui-pad15">
                    <form class="layui-form" action="">
                        <div class="layui-col-md12 layui-col-lh">
                            <div class="layui-row layui-col-space15">
                                <div class="layui-col-md2"><input type="text" name="title"  placeholder="单项名称" class="form-control"/></div>
                                <div class="layui-col-md2"><input type="text" name="title"  placeholder="单项代码" class="form-control"/></div>
                                <div class="layui-col-md3">
                                    <div class="layui-row">
                                        <div class="layui-col-md12 layui-order-flexs">
                                            <input type="text" class="form-control layui-gd-widths" placeholder="时间" id="test1">
                                            &nbsp;&nbsp;至&nbsp;&nbsp;
                                            <input type="text" class="form-control layui-gd-widths" placeholder="时间" id="test2">
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-col-md1">
                                    <button class="layui-btn  layui-t-h">筛选</button>
                                </div>
                                <div class="layui-col-md4 layui-text-right">
                                    <a class="layui-btn layui-t-h" id="AddLx">
                                        <i class="layui-icon" style="font-size:20px;color: #ffffff;">&#xe63c;</i>
                                        新增类型
                                    </a>
                                </div>
                            </div>
                        </div>
                    </form>

                    <!--表格-->
                    <div class="layui-row">
                        <div class="layui-col-md12">
                            <table class="layui-data-zs" id="test3" border="1" style="    border: 1px solid #e5e5e5;">
                                <tr class="layui-t-h layui-hg-b" style=" background-color: #34C0E3;color: #ffffff;">
                                    <th>序号</th>
                                    <th>类型名称</th>
                                    <th>创建时间</th>
                                    <th>操作</th>
                                </tr>
                                <tr class="layui-hg-b">
                                    <td>1</td>
                                    <td>基础问题</td>
                                    <td>2018-04-11</td>
                                    <td>
                                        <a href="#" class="layui-btn-ty layui-zdy-bj ">编辑</a>
                                        <a href="#" class="layui-btn-ty  layui-dels">删除</a>
                                    </td>
                                </tr>
                                <tr class="layui-hg-b">
                                    <td>1</td>
                                    <td>基础问题</td>
                                    <td>2018-04-11</td>
                                    <td>
                                        <a href="#" class="layui-btn-ty layui-zdy-bj ">编辑</a>
                                        <a href="#" class="layui-btn-ty  layui-dels">删除</a>
                                    </td>
                                </tr>
                                <tr class="layui-hg-b">
                                    <td>1</td>
                                    <td>基础问题</td>
                                    <td>2018-04-11</td>
                                    <td>
                                        <a href="#" class="layui-btn-ty layui-zdy-bj ">编辑</a>
                                        <a href="#" class="layui-btn-ty  layui-dels">删除</a>
                                    </td>
                                </tr>
                                <tr class="layui-hg-b">
                                    <td>1</td>
                                    <td>基础问题</td>
                                    <td>2018-04-11</td>
                                    <td>
                                        <a href="#" class="layui-btn-ty layui-zdy-bj ">编辑</a>
                                        <a href="#" class="layui-btn-ty  layui-dels">删除</a>
                                    </td>
                                </tr>
                                <tr class="layui-hg-b">
                                    <td>1</td>
                                    <td>基础问题</td>
                                    <td>2018-04-11</td>
                                    <td>
                                        <a href="#" class="layui-btn-ty layui-zdy-bj ">编辑</a>
                                        <a href="#" class="layui-btn-ty  layui-dels">删除</a>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <!--分页-->
                        <div class="layui-col-md12 layui-page-top">
                            <div id="demo7"></div>
                        </div>
                        <!--分页end-->
                    </div>
                    <!--表格end-->


                </div>

            </div>
        </div>
    </div>
</div>

<script src="../static/js/jquery.min.js"></script>
<script src="../static/plugins/layui/layui.js"></script>
<script src="../static/plugins/bootstrap-3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../static/js/angular.js"></script>
<script>
    //Demo
    layui.use(['form','laypage','laydate','table'], function(){
        var form = layui.form;
        var laydate = layui.laydate;
        var laypage = layui.laypage
        //监听提交
        form.on('submit(formDemo)', function(data){
            layer.msg(JSON.stringify(data.field));
            return false;
        });
     // 日期
        laydate.render({
            elem: '#test1' //指定元素
            ,theme: '#34C0E3'
        });
        laydate.render({
            elem: '#test2' //指定元素
            ,theme: '#34C0E3'
        });
        //完整功能
        laypage.render({
            elem: 'demo7'
            ,count: 100
            ,theme: '#34C0E3'
            ,layout: ['count', 'prev', 'page', 'next', 'limit', 'skip']
            ,jump: function(obj){
                console.log(obj)
            }
        });
        //增加选项
        $(function () {
            $('#AddLx').on('click',function () {
                var strU = 'addType.html';
                layer.open({
                    type: 2,
                    title:'新增类型',
                    area: ['500px', '200px'],
                    shadeClose: true, //开启遮罩关闭
                    content: strU
                });
            });
        });

    });
</script>




